package com.ipzoe.common.service;

import com.ipzoe.common.bean.entity.Profile;
import com.ipzoe.common.repository.ProfileRepository;
import com.ipzoe.common.util.DefaultService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * 用户信息Service
 * <p>
 * Created 2018/01/19.
 *
 * @author pfzhang
 */
@Service
@Transactional(rollbackFor = RuntimeException.class)
public class ProfileService extends DefaultService<Profile> {

    private ProfileRepository profileRepository;

    @Resource
    public void setProfileRepository(ProfileRepository profileRepository) {
        this.profileRepository = profileRepository;
        super.setDefaultMapper(profileRepository);
    }
}
